﻿using System;
using System.Collections.Generic;
using System.Text;
using Tools.constant;
using System.Windows.Forms;
using System.Collections;

namespace Tools
{
    public class SysConstant
    {
        public static String AppStartPath = "";//启动目录
        public static OsVer OSVer = OsVer.UNKNOW;//当前操作系统
        //public static List<AntiVirus> Virus = new List<AntiVirus>();

        public static Form MainForm;
        public static Form CurrForm;//当前窗口

        private static Hashtable _VirusMap = new Hashtable();
        /// <summary>
        /// 杀毒软件进程
        /// </summary>
        public static Hashtable VirusMap
        {
            get
            {
                if (_VirusMap == null || _VirusMap.Count == 0)
                {
                    _VirusMap.Add(AntiVirus.K360, "360tray|360Safe|safeboxTray|360safebox");
                    _VirusMap.Add(AntiVirus.K360_SD, "360sd");
                    _VirusMap.Add(AntiVirus.TENCEN, "QQPCTray|QQPCMgr");
                    _VirusMap.Add(AntiVirus.KINGSOFT, "ksafe|KSafeSvc|KSafeTray|KAVStart|KWatch|KMailMon");
                    _VirusMap.Add(AntiVirus.MAC_FEE, "mfefire|mfemms|mfevtps");
                    _VirusMap.Add(AntiVirus.KASPERSKY, "AVP");
                    _VirusMap.Add(AntiVirus.AVFWSVC, "avira.systray");
                    _VirusMap.Add(AntiVirus.NPF, "NPFMntor|vptray");
                }
                return _VirusMap;
            }
        }
    }
}
